<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>设备列表页</title>
<link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/easyui/easyui.css'}">
<link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/easyui/color.css'}">
<link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/easyui/icon.css'}">
<link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/form.css'}">
<script type="text/javascript">
	var opt='';
	#{my.tags.authority Auth:DEVICE_VIEW}
	opt+='<a href="javascripts: void();" onclick="viewDevice(\'{param}\')" class="a_control">详情</a>&nbsp;';
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_COPY}
	opt+='<a href="javascripts: void();" onclick="copyDevice(\'{param}\')" class="a_control">复制</a>&nbsp;';
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_DELETE}
	opt+='<a href="javascripts: void();" onclick="delDevice(\'{param}\')" class="a_control">删除</a>&nbsp;';
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_EDIT}
	opt+='<a href="javascripts: void();" onclick="edit(\'{param}\')" class="a_control"> 编辑</a>';
	#{/my.tags.authority}
</script>
</head>
<body>
<div id="divform" class="form_group">
	<form id="form" method="post">
		<input type="hidden" id="isflag">
		<div class="form_group" style="margin-bootom:5px !important">
			<div class="col-xs-12"><span class="word" style="line-height:20px;">状态:</span>
				<span class="word" style="width:50px"><a class="a_control a_search" style="line-height:20px;" id="all" href="javascript:void(0);" onclick="searchStatus('all')">全部</a></span>
				<span class="word"><a class="a_control a_search" id="enable" href="javascript:void(0);" onclick="searchStatus(false)">已启用</a></span>
				<span class="word"><a class="a_control a_search" id="disable" href="javascript:void(0);" onclick="searchStatus(true)">已停用</a></span>
			</div>
		</div>
		<div class="form_group">
			<div class="col-xs-3"><span class="word">门店编号:</span><input type="text" class="form-control" id="shopid" name="shopid"></input></div>
			<div class="col-xs-3"><span class="word">门店名称:</span><input type="text" class="form-control" id="shopname" name="shopname"></input></div>
			<div class="col-xs-3"><span class="word">经销商编号:</span><input type="text" class="form-control" id="dealerid" name="dealerid"></input></div>
			<div class="col-xs-3"><span class="word">经销商名称:</span><input type="text" class="form-control" id="dealername" name="dealername"></input></div>
		</div>
		<div class="form_group">
			<div class="col-xs-3"><span class="word">设备编号:</span><input type="text" class="form-control" id="deviceid" name="deviceid"></input></div>
			<div class="col-xs-3"><span class="word">设备名称:</span><input type="text" class="form-control" id="devicename" name="devicename"></input></div>
			<div class="col-xs-2"><span class="word">设备型号:</span><input type="text" style="width:60%;height:25px" id="devicemodel" name="devicename"></input></div>
			<div class="col-xs-2"><span class="word">健康状况:</span><input type="text" style="width:60%;height:25px" id="devicestatus" name="status"></input></div>
			<div class="col-xs-2"><input type="button" style="float:right" id="serbutton" class="button" value="搜索" ></div>
		</div>
	</form>
</div>
<div style="width:100%;height:100%" class="col-xs_12">
	<table id="listDevice"></table>
</div>
<div id="dlg" style="display:none"></div>
<div id="tb">
	#{my.tags.authority Auth:DEVICE_ADD}
	<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addDevice()">添加</a>
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_ENABLE}
	<a href="#" class="easyui-linkbutton" iconCls="icon-enable" plain="true" onclick="betchEnable()">启用</a>
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_DISABLE}
	<a href="#" class="easyui-linkbutton" iconCls="icon-disable" plain="true" onclick="betchDisable()">停用</a>
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_BETCHDEL}
	<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="betchDel()">批量删除</a>
	#{/my.tags.authority}
	#{my.tags.authority Auth:DEVICE_EXPORT}
	<a class="easyui-linkbutton" iconCls="icon-export" plain="true" onclick="exportXls()">导出全部</a>
	#{/my.tags.authority}
</div>
</body>
<script type="text/javascript" src="@{'/public/javascripts/layout/jquery-1.8.2.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/common.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/jquery.easyui.min.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/datagrid-detailview.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/easyui-lang-zh_CN.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/layout/dateFormat.js'}"></script>
<script type="text/javascript" src="@{'/public/javascripts/DeviceController/deviceList.js'}"></script>
</html>